/*
 * @Author: NINANGE m13672456277@163.com
 * @Date: 2023-07-26 15:25:23
 * @LastEditors: NINANGE m13672456277@163.com
 * @LastEditTime: 2023-09-05 10:25:56
 * @FilePath: /eladmin-web/src/store/modules/api.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
// 适配 Nginx 反向代理
const baseUrl = process.env.VUE_APP_BASE_/'https://eladmin.vip'//process.env.VUE_APP_BASE_API === '/' ? '' : process.env.VUE_APP_BASE_API
const api = {
  state: {
    // 部署包上传
    deployUploadApi: baseUrl + '/deploy/upload',
    // SQL脚本上传
    databaseUploadApi: baseUrl + '/database/upload',
    // 图片上传
    imagesUploadApi: baseUrl + '/localStorage/pictures',
    // 修改头像
    updateAvatarApi: baseUrl + '/users/updateAvatar',
    // 上传文件到七牛云
    qiNiuUploadApi: baseUrl + '/qiNiuContent',
    // Sql 监控
    sqlApi: baseUrl + '/druid/index.html',
    // swagger
    swaggerApi: baseUrl + '/doc.html',
    // 文件上传
    fileUploadApi: baseUrl + '/localStorage',
    // baseUrl，
    baseApi: baseUrl
  }
}

export default api
